package com.dreamoo.bloomFilter;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * @author 山顶洞人郑某
 * @className BloomFilterProperties.java
 * @date 2024 10 28 布隆过滤器 配置属性
 */
@Data
@Component
public class BloomFilterProperties {
    public static final String PREFIX = "bloom-filter";

    /**
     * 布隆过滤波器名称
     */
  //  @Value("${bloom-filter.name}")
    private String name = "user-bloom-filter";
    /**
     * 布隆过滤器最大容量
     */
 //   @Value("${bloom-filter.expectedInsertions}")
    private Long expectedInsertions = 20000L;


    /**
     * 布隆过滤器碰撞率
     */
   // @Value("${bloom-filter.falseProbability}")
    private Double falseProbability = 0.01D;

}